$(document).ready(function(){
	var date=new Date();
	var orderDate=date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate();
	$.ajax({
		url:'dishOrder_searchDataListByDate.action',
		dataType:'json',
		type:'POST',
		data:{
			'orderDate':orderDate,
		},
		success:function(data){
			if (data.status == "200"){
				for(var i=0,j=1;i<data.data.length;i++,j++){
					var value=data.data[i];
				$('#order-list3').after(" <li class='list-group-item'>"+
					"<table style='width: 100%;'>"+
						"<tr class='first-title'>"+
							"<td>"+j+"</td>"+
							"<td>"+value.diningTableName+"</td>"+
							"<td>流水号:"+value.serialsNumber+"</td>"+
							"<td>开台时间:"+value.creatTime+"</td>"+
							"<td>￥"+value.price+"</td>"+
							"<td><button class='btn btn-warning'>结账</button></td><td><span class='glyphicon expand glyphicon-chevron-left'></span></td></tr></table></li>");
				}
			} else {
//				window.location.href = "error.html";
			}
		}
	});
});